package com.cool.reggie.modules.addressBook.service.impl;

import com.cool.reggie.modules.addressBook.entity.AddressBookEntity;
import com.cool.reggie.modules.addressBook.mapper.AddressBookMapper;
import com.cool.reggie.modules.addressBook.service.AddressBookService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 地址管理 服务实现类
 * </p>
 *
 * @author 1950735817@qq.com
 * @since 2022-07-18
 */
@Service
public class AddressBookServiceImpl extends ServiceImpl<AddressBookMapper, AddressBookEntity> implements AddressBookService {

    @Autowired
    private AddressBookMapper addressBookMapper;

    @Override
    public void updateDefaultAddress(AddressBookEntity addressBook) {
        addressBookMapper.updateAddressBook(addressBook);
    }
}
